Allows the client to initialize a mercurial repo when creating a new cargo project with `cargo new --hg`. This would close #510.
This is my first time writing code in rust outside of a toy program so please feel free to tear it apart or suggest an alternative solution.
use std::os;
use std::io::{mod, fs, File};
+use std::io::fs::PathExtensions;
- use git2::{Repository, Config};
+ use git2::Config;
- use util::{CargoResult, human, ChainError, config, internal};
+ use util::{GitRepo, HgRepo, CargoResult, human, ChainError, config, internal};
use core::shell::MultiShell;
pub struct NewOptions<'a> {